package com.wqi.chapter6;

public class FinalData {

	final int i1 = 9;
	static final  int i2 = 99;
	static int tmp1;
	static final int tmp = 2;
	public static final int i3 =39;
	final int i4=(int)(Math.random()*20);
	static final int i5 = (int)(Math.random()*20);
	Value v1 = new Value();
	final Value v2 = new Value();
	static final Value v3 = new Value();
	final int[] a = {1,2,3,4,5,6};
	
	public FinalData() {
		v2.i=3;
		v2.i = 4;
		v3.i = 2;
		v3.i = 3;
		
		
	}
	public void print(String id){
		System.out.println(id+":" +" ,i4 = " +i4+" , i5="+i5);
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		FinalData fd1 = new FinalData();
		fd1.v2.i++;

	}

}

class Value{
	int i=1;
}
